Class symantec.itools.demo.Demo
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class symantec.itools.demo.Demo

Object
   |
   +----Component
           |
           +----Container
                   |
                   +----Panel
                           |
                           +----Applet
                                   |
                                   +----symantec.itools.demo.Demo

public abstract class Demo
extends Applet
A demonstration Applet class.

Version:
1.0, Nov 26, 1996
Author:
Symantec

Variable Index

 o frame
This program's frame.
 o height
The frame height, in pixels.
 o isApplet
True if this class is invoked as an Applet.
 o title
Frame title.
 o width
The frame width, in pixels.
 o xPos
The frame horizontal position, in pixels.
 o yPos
The frame vertical position, in pixels.

Constructor Index

 o symantec.itools.demo.Demo(String, int, int, int, int)
Constucts the Demo object.

Method Index

 o add(Component)
 o add(Component, int)
 o add(String, Component)
 o cleanup()
Hides and disposes the frame.
 o doAbout()
Handles demo "About..." requests.
 o doExit()
Hides and disposes the frame, then exits.
 o doHelp()
Handles demo help requests.
 o doRestart()
Reinitializes the demo.
 o driver()
Called to initialize this object if it is not an applet.
 o endDemo()
Called to end this demo.
 o getFont()
Gets the font to use for this Demo.
 o getGraphics()
 o init()
Called by the Applet viewer to initialize this applet.
 o setLayout(LayoutManager)
 o setup()
Shared setup code.

Variables

 o frame
protected symantec.itools.demo.DemoFrame frame
This program's frame.

 o height
protected int height
The frame height, in pixels.

 o isApplet
protected boolean isApplet
True if this class is invoked as an Applet.

 o title
protected java.lang.String title
Frame title.

 o width
protected int width
The frame width, in pixels.

 o xPos
protected int xPos
The frame horizontal position, in pixels.

 o yPos
protected int yPos
The frame vertical position, in pixels.

Constructors

 o Demo
public Demo(String s,
            int x,
            int y,
            int w,
            int h)
Constucts the Demo object.

Parameters:
s - the frame title
x - the frame horizontal position, in pixels
y - the frame vertical position, in pixels
w - the frame width, in pixels
h - the frame height, in pixels

Methods

 o add
public java.awt.Component add(Component c)
Overrides:
add in class Container
 o add
public synchronized java.awt.Component add(Component c,
                                           int i)
Overrides:
add in class Container
 o add
public synchronized java.awt.Component add(String s,
                                           Component c)
Overrides:
add in class Container
 o cleanup
public void cleanup()
Hides and disposes the frame.

 o doAbout
public void doAbout()
Handles demo "About..." requests.

 o doExit
public void doExit()
Hides and disposes the frame, then exits.

 o doHelp
public void doHelp()
Handles demo help requests.

 o doRestart
public void doRestart()
Reinitializes the demo.

 o driver
protected void driver()
Called to initialize this object if it is not an applet.

 o endDemo
public void endDemo()
Called to end this demo.

 o getFont
public java.awt.Font getFont()
Gets the font to use for this Demo.

Returns:
the font
Overrides:
getFont in class Component
 o getGraphics
public java.awt.Graphics getGraphics()
Overrides:
getGraphics in class Component
 o init
public void init()
Called by the Applet viewer to initialize this applet.

Overrides:
init in class Applet
See Also:
init
 o setLayout
public void setLayout(LayoutManager manager)
Overrides:
setLayout in class Container
 o setup
protected void setup()
Shared setup code.


All Packages  Class Hierarchy  This Package  Previous  Next  Index